<?php
if (!defined('CURRENT_PATH')){
	die('Hacking attempt');
	}
if($_REQUEST['fid']=='0'){//single page
 	$conditions ='fid=0';
}else if($_REQUEST['fid']=='1'){//company news
	$conditions ='fid=1';
}else if($_REQUEST['fid']=='2'){//company news
	$conditions ='fid=2';
}else if($_REQUEST['fid']=='3'){//company news
	$conditions ='fid=3';
}else{
	$this->error('囧,这个真没有！');
	die;
}
$page=isset($_GET[page])?intval($_GET[page]):1;
$ps=spClass(posts);
$res=$ps->spPager($this->spArgs('page', $page),10)->findAll($conditions,$sort='sid desc,post_date desc',$fields='id,fid,sid,post_title,post_author,post_date,post_satus,post_summary,post_highlight,umeta_id,system');
$this->res=$res;
$this->pager=$ps->spPager()->getPager();
$this->mod=$this->spArgs('mod').'&fid='.$this->spArgs('fid');
$this->display('management/article_list.html');